package com.ruoyi.huoyun.auth.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.auth.mapper.UserConsignorAuthMapper;
import com.ruoyi.huoyun.auth.domain.UserConsignorAuth;
import com.ruoyi.huoyun.auth.service.IUserConsignorAuthService;

/**
 * 货主的认证信息Service业务层处理
 *
 * @author mj
 * @date 2021-11-29
 */
@Service
public class UserConsignorAuthServiceImpl implements IUserConsignorAuthService
{
    @Autowired
    private UserConsignorAuthMapper userConsignorAuthMapper;

    /**
     * 查询货主的认证信息
     *
     * @param id 货主的认证信息主键
     * @return 货主的认证信息
     */
    @Override
    public UserConsignorAuth selectUserConsignorAuthById(Integer id)
    {
        return userConsignorAuthMapper.selectUserConsignorAuthById(id);
    }

    /**
     * 查询货主的认证信息列表
     *
     * @param userConsignorAuth 货主的认证信息
     * @return 货主的认证信息
     */
    @Override
    public List<UserConsignorAuth> selectUserConsignorAuthList(UserConsignorAuth userConsignorAuth)
    {
        return userConsignorAuthMapper.selectUserConsignorAuthList(userConsignorAuth);
    }

    /**
     * 新增货主的认证信息
     *
     * @param userConsignorAuth 货主的认证信息
     * @return 结果
     */
    @Override
    public int insertUserConsignorAuth(UserConsignorAuth userConsignorAuth)
    {
        return userConsignorAuthMapper.insertUserConsignorAuth(userConsignorAuth);
    }

    /**
     * 修改货主的认证信息
     *
     * @param userConsignorAuth 货主的认证信息
     * @return 结果
     */
    @Override
    public int updateUserConsignorAuth(UserConsignorAuth userConsignorAuth)
    {
        return userConsignorAuthMapper.updateUserConsignorAuth(userConsignorAuth);
    }

    /**
     * 批量删除货主的认证信息
     *
     * @param ids 需要删除的货主的认证信息主键
     * @return 结果
     */
    @Override
    public int deleteUserConsignorAuthByIds(Integer[] ids)
    {
        return userConsignorAuthMapper.deleteUserConsignorAuthByIds(ids);
    }

    /**
     * 删除货主的认证信息信息
     *
     * @param id 货主的认证信息主键
     * @return 结果
     */
    @Override
    public int deleteUserConsignorAuthById(Integer id)
    {
        return userConsignorAuthMapper.deleteUserConsignorAuthById(id);
    }
}
